package com.dao;

import java.util.List;
import java.util.Map;

import com.entity.Subject;
import com.entity.TongJi;

public interface SubjectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Subject record);

    int insertSelective(Subject record);

    Subject selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Subject record);

    int updateByPrimaryKeyWithBLOBs(Subject record);

    int updateByPrimaryKey(Subject record);
    
    public Subject checkUname(Map<String, Object> uname);

	// 查询所有信息
	public List<Subject> getAll(Map<String, Object> map);

	// 查询所有信息
	public List<Subject> getAll2(Map<String, Object> map);

	// 获取条数
	public int getCount(Map<String, Object> po);

	// 分页
	public List<Subject> getByPage(Map<String, Object> map);

	// 分页
	public List<Subject> getByPage2(Map<String, Object> map);

	// 模糊查询并分页
	public List<Subject> select(Map<String, Object> map);
	
	public List<TongJi> getTongJi(Map<String, Object> map);
	
	public List<TongJi> getTongJi_kc(Map<String, Object> map);
	
}